linux + echo not print Characters or not print anything? [migrated]

Posted by Diana on Server Fault See other posts from Server Fault or by Diana
Published on 2011-11-15T16:20:42Z Indexed on 2011/11/15 17:54 UTC
Read the original article Hit count: 195

Filed under:

please advice how to use echo command in order to print exactly the line

in example 1 echo not print the " ' "

in example 2 echo not print anything

how to use echo in order to print exactly the words in the lines?

example1

   echo ' echo PARAM=`  grep  $ARG  /var/tmp/setfile  | awk '{print $2}' `    '
   echo PARAM=`  grep  $ARG  /var/tmp/setfile  | awk {print } `    

   echo not print the "'"

example2

   echo " echo PARAM=`  grep  $ARG  /var/tmp/setfile  | awk '{print $2}' `  "

   echo not return output

© Server Fault or respective owner

Related posts about linux